Page({
  data: {
    getRepairList: []
  },
  onLoad() {
    this.getRepairList()
  },
  async getRepairList() {
    const res = await wx.http({ url: '/repair' })
    // console.log(res);
    this.setData({
      getRepairList: res.data.rows
    })
  },
  goDetail(ev) {
    // console.log(ev);
    wx.navigateTo({
      url: '/repair_pkg/pages/detail/index?id=' + ev.mark.id,
    })
  },
  addRepair() {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index',
    })
  },
})
